<?php
/**
 * Created by PhpStorm.
 * User: 沈小鱼
 * Date: 2016/8/16
 * Time: 19:10
 */
?>
<div class="row">
    <div class="col-sm-12">
        <div class="row" style="color: #00B2E2">
            <h3>
                <label style="margin-left: 10px"><?=$user['mi_name'] ?></label>
                <label style="margin-left: 10px"><?=$user['mi_sex']=='男' ? '<i class="fa fa-mars" style="color: #0044cc"></i>':
                        ($user['mi_sex']=='女' ? '<i class="fa fa-venus" style="color: #1995dc"></i>':
                            '<i class="fa fa-genderless" style="color: grey"></i>') ?></label>
                <label style="margin-left: 10px"><?=$user['mi_age'].'岁' ?></label>
                <label style="margin-left: 10px"><i class="fa fa-book"></i>
                    <?=empty($user['mi_edu']) ? '未知':$user['mi_edu'] ?>
                </label>
                <label style="margin-left: 10px">
                    <?=empty($user['mi_zodiac']) ? '未知':$user['mi_zodiac'] ?></label>
                <label style="margin-left: 10px">
                    <?=(empty($user['details'])||empty($user['details']['md_marry'])) ? '未知':
                        $user['details']['md_marry']  ?></label>
            </h3>
        </div>
        <div class="row">
            <label style="color: #00B2E2;margin-left: 10px">出生年月：</label>
            <i class="fa fa-calendar"></i>
            <?=empty($user['mi_birth']) ? '未知':$user['mi_birth'] ?>
            <label style="color: #00B2E2;margin-left: 10px">身 高：</label>
            <?=empty($user['mi_height']) ? '未知':$user['mi_height'].'cm' ?>
            <label style="color: #00B2E2;margin-left: 10px">体 重：</label>
            <?=empty($user['mi_weight']) ? '未知':$user['mi_weight'].'kg' ?>
            <label style="color: #00B2E2;margin-left: 10px">籍 贯：</label>
            <i class="fa fa-map-marker"></i>
            <?=empty($user['mi_root']) ? '未知':str_replace(';','',$user['mi_root']) ?>
        </div>
        <div class="row">
            <label style="color: #00B2E2;margin-left: 10px">身份证号：</label>
            <i class="fa fa-user"></i>
            <?=empty($user['mi_cardid']) ? '未知':$user['mi_cardid'] ?>
            <label style="color: #00B2E2;margin-left: 10px">视 力：</label>
            <i class="fa fa-eye"></i>
            <?=empty($user['mi_sight']) ? '未知':$user['mi_sight'] ?>
        </div>
        <div class="row">
            <label style="color: #00B2E2;margin-left: 10px">联系方式：</label>
            <i class="fa fa-mobile"></i>
            <?=empty($user['extras']['me_phone']) ? '未知':$user['extras']['me_phone'] ?>
            <i style="margin-left: 10px" class="fa fa-qq"></i>
            <?=empty($user['extras']['me_qq']) ? '未知':$user['extras']['me_qq'] ?>
            <i style="margin-left: 10px" class="fa fa-wechat"></i>
            <?=empty($user['extras']['me_wx']) ? '未知':$user['extras']['me_wx'] ?>
        </div>
        <div class="row">
            <label style="color: #00B2E2;margin-left: 10px">健康状况：</label>
            <?=empty($user['healths']['mh_state']) ? '未知':$user['healths']['mh_state'] ?>
            <label style="color: #00B2E2;margin-left: 10px">遗传病：</label>
            <?=empty($user['healths']['mh_syntrophus']) ? '未知':$user['healths']['mh_syntrophus'] ?>
            <label style="color: #00B2E2;margin-left: 10px">病种：</label>
            <?=empty($user['healths']['mh_history']) ? '未知':$user['healths']['mh_history'] ?>
        </div>
        <div class="row">
            <label style="color: #00B2E2;margin-left: 10px">现居地址：</label>
            <i class="fa fa-map-marker"></i>
            <?=empty($user['extras']['me_postion'])&&empty($user['extras']['me_address']) ? '未知':str_replace(';','',$user['extras']['me_postion']).$user['extras']['me_address'] ?>
        </div>
        <div class="row">
            <label style="color: #00B2E2;margin-left: 10px">住房性质：</label>
            <?=empty($user['extras']['me_livetype']) ? '未知':$user['extras']['me_livetype'] ?>
            <label style="color: #00B2E2;margin-left: 10px">居住环境：</label>
            <?=empty($user['extras']['me_env']) ? '未知':$user['extras']['me_env'] ?>
        </div>
        <div class="row">
            <label style="color: #00B2E2;margin-left: 10px">工作单位：</label>
            <?=empty($user['details']['md_work']) ? '未知':$user['details']['md_work'] ?>
            <label style="color: #00B2E2;margin-left: 10px">月 薪：</label>
            <i class="fa fa-rmb"></i>
            <?=empty($user['details']['md_mon_salary']) ? '未知':$user['details']['md_mon_salary'] ?>
            <label style="color: #00B2E2;margin-left: 10px">年 薪：</label>
            <i class="fa fa-rmb"></i>
            <?=empty($user['details']['md_year_salary']) ? '未知':$user['details']['md_year_salary'] ?>
        </div>
        <div class="row">
            <label style="color: #00B2E2;margin-left: 10px">当前状况：</label>
            <i style="color: #00B2E2" class="fa fa-home"></i> &nbsp;
            <?=empty($user['details']['md_isowner']) ?
                '未知':($user['details']['md_isowner'] == '无')?
                    '<i class="fa fa-times" style="color: red"></i>':
                    '<i class="fa fa-check" style="color: green"></i>' ?>
            <i style="color: #00B2E2;margin-left: 10px" class="fa fa-car"></i> &nbsp;
            <?=empty($user['details']['md_hascar']) ?
                '未知':($user['details']['md_hascar'] == '无')?
                    '<i class="fa fa-times" style="color: red"></i>':
                    '<i class="fa fa-check" style="color: green"></i>' ?>
            <i style="color: #00B2E2;margin-left: 10px" class="fa fa-paypal"></i> &nbsp;
            <?=empty($user['details']['md_loan']) ?
                '未知':($user['details']['md_loan'] == '无')?
                    '<i class="fa fa-times" style="color: red"></i>':
                    '<i class="fa fa-check" style="color: green"></i>' ?>
            <i style="color: #00B2E2;margin-left: 10px" class="fa fa-child"></i> &nbsp;
            <?=empty($user['details']['md_child']) ?
                '未知':($user['details']['md_child'] == '无')?
                    '<i class="fa fa-times" style="color: red"></i>':
                    '<i class="fa fa-check" style="color: green"></i>' ?>
        </div>
        <div class="row">
            <?php
            if(!empty($user['details'])&&$user['details']['md_isowner']=='有'){
                ?>
                <label style="color: #00B2E2;margin-left: 10px">房屋地址：</label>
                <i class="fa fa-map-marker"></i>
                <?=empty($user['details']['md_location'])&&empty($user['details']['md_house_address']) ? '未知':str_replace(';','',$user['details']['md_location']).$user['details']['md_house_address'] ?>
                <label style="color: #00B2E2;margin-left: 10px">房屋面积：</label>
                <?=empty($user['details']['md_house_area']) ? '未知':$user['details']['md_house_area'].'㎡' ?>
                <?php
            }
            if(!empty($user['details'])&&$user['details']['md_hascar']=='有'){
                ?>
                <label style="color: #00B2E2;margin-left: 9px">&nbsp;&nbsp; 车 &nbsp;型&nbsp;&nbsp;：</label>
                <?=empty($user['details']['md_cartype']) ? '未知':$user['details']['md_cartype'] ?>
                <?php
            }
            ?>
        </div>
        <div class="row">
            <?php
            if(!empty($user['details'])&&$user['details']['md_marry']=='离异'){
                ?>
                <label style="color: #00B2E2;margin-left: 10px">离婚证号：</label>
                <?=empty($user['details']['md_despid']) ? '未知':$user['details']['md_despid'] ?>
                <?php
            }
            if(!empty($user['details'])&&$user['details']['md_child']=='有'){
                ?>
                <label style="color: #00B2E2;margin-left: 10px">小孩归属:</label>
                <?=empty($user['details']['md_child_belong']) ? '未知':$user['details']['md_child_belong'] ?>
                <?php
            }
            ?>
        </div>
        <div class="row">
            <label style="color: #00B2E2;margin-left: 10px">自我描述：</label>
            <?=empty($user['details']['md_selfdiscr']) ? '无':$user['details']['md_selfdiscr'] ?>
        </div>
    </div>
</div>
